/*
 * $Id: ReadyQueueI.java,v 1.5 2009/12/09 17:15:51 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.load.system;

import java.util.List;

import com.ge.healthcare.autosc.common.database.pojo.ActTask;
import com.ge.healthcare.autosc.common.load.IResourceQueue;
import com.ge.healthcare.autosc.common.pojo.TaskNResource;

public interface ReadyQueueI {

	void queue(ActTask task);

	void release(ActTask task);

	List<TaskNResource> taskToQueue();

	int sizeReadyQueue(String category);

	int maxReadyQueue(String category);

	int sizeSystemQueue(String category);

	int maxSystemQueue(String category);

	boolean isReadyQueued(ActTask task);

	boolean isUsingSystemResource(ActTask task);
	
	void resetQueue();

	ISystemResource exportSystemResource(int readyQueueMultiplier);
	public IResourceQueue getQueue();
	public ISystemResource getSysResource();
	
	public List<ActTask> getExpiredTasksInRQ();

	void release(TaskNResource taskNR);
}
